package com.hddf.project.impl;

import org.hibernate.Query;
import org.hibernate.Session;

import com.hddf.project.dao.RunTimeDao;
import com.hddf.project.util.Stct;

public class RunTimeDaoImpl implements RunTimeDao {

	/**
	 * 修改成历史项目
	 * 
	 * @param time
	 * @param s
	 * @throws Exception
	 */
	public void updateHistory(String time, Session s) {
		Query query = s.createQuery("update Project as p  set p.history=" + Stct.HISTORY_IS
				+ " where p.impl_time<=:temp");
		query.setString("temp", time);
		query.executeUpdate();
	}
}
